/**
 * 用户相关路由
 */
export default [
    // 用户登录
    {
        path: '/user/login',
        name: 'Login',
        component: () => import('../pages/user/Login.vue'),
        meta: {
            title: '登录'
        }
    },
    // 用户注册
    {
        path: '/user/register',
        name: 'Register',
        component: () => import('../pages/user/Login.vue'),
        meta: {
            title: '注册'
        }
    },
    // 用户详情
    {
        path: '/user',
        name: 'UserDetail',
        component: () => import('../pages/user/UserEdit.vue'),
        meta: {
            title: '用户详情',
            loginRequired: true
        }
    },
    // 用户修改
    {
        path: '/user/:id',
        name: 'UserUpdate',
        component: () => import('../pages/user/UserEdit.vue'),
        meta: {
            title: '修改用户',
            loginRequired: true
        }
    },
]